package com.jn.rxjava.gson;

import com.jn.rxjava.model.NewsResponse;
import com.jn.rxjava.model.WeatherResponse;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {
    @GET("weather/weather")
    Observable<WeatherResponse> getWeatherInfo(@Query("city_name") String cityName);

    @GET("common/today")
    Observable<NewsResponse> getNewsInfo();
}